package com.ruoyi.system.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 导入结果封装类
 */
@Data
public class ImportResult {
    private int successCount = 0;
    private int skipCount = 0;
    private List<String> errors = new ArrayList<>();
    public void incrementSuccessCount() {
        this.successCount++;
    }

    public void incrementSkipCount() {
        this.skipCount++;
    }

    public void addError(String error) {
        this.errors.add(error);
    }
}